package com.lmt_14;

import java.io.DataOutputStream;
import java.io.FileOutputStream;

public class DataOutputStreamTest {
    public static void main(String[] args) {
        try (
                DataOutputStream ds = new DataOutputStream(new FileOutputStream("src/com/lmt_14/1.txt"));

                )
        {
            ds.writeInt(12);
            ds.writeBoolean(true);
            ds.writeDouble(25.1);
            ds.writeUTF("哈哈哈哈会");
        }catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
